package com.itliang.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itliang.core.model.dto.system.sysuser.SysUserUpdateStatusRequest;
import com.itliang.core.model.entity.system.SysUser;

import java.util.Map;

/**
 * 用户服务
 *
 * @author liangzhuoyuan
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 更新用户状态
     *
     * @param updateStatusRequest
     * @return
     */
    boolean updateStatus(SysUserUpdateStatusRequest updateStatusRequest);

    SysUser getByUserAccount(String userAccount);

    /**
     * 获取用户权限信息
     *
     * @param userId
     * @return
     */
    Map<String, Object> getUserInfo(Long userId);
}
